<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="__PUBLIC__/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/css/style.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/lib/font-awesome/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!--[if IE 7]>
<link href="lib/font-awesome/font-awesome-ie7.min.css" rel="stylesheet" type="text/css" />
<![endif]-->
<link href="__PUBLIC__/lib/iconfont/iconfont.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>分类编辑</title>
</head>
<body>
<div class="pd-20">
  <form class="Huiform" action="{:U('admin/category/categoryedit')}" method="post" id="form-article-class">
    <div class="text-c mt-20">
      上级栏目： <span class="select-box" style="width:250px;text-align:center;">
      <input type="hidden" value="<?php echo $_GET['id'] ?>" name="id">
      <select class="select" id="sel_Sub" name="fid">
        <?php 
        
            if($oldfid == 0){
              ?>
                <option value="0" selected>自己就是顶级分类</option>
                <?php
                    foreach ($category as $key => $value) {
                      ?>
                        <option <?php if($oldid == $value['id']) ?> value="{$value['id']}">{$value['cname']}</option>
                      <?php
                    }
                 ?>
              <?php
            }else{
              foreach ($category as $key => $value){
                ?>
                  <option <?php if($oldfid == $value['id']) echo 'selected'; ?> value="{$value['id']}">{$value['cname']}</option>
                <?php
              }
            }
         ?>
          
        
          
      </select>
      </span>
      分类名：
      <input class="input-text" style="width:170px" type="text" value="{$oldcname}" placeholder="输入分类" name="cname" id="class-val">
    </div>
    <div class="text-c mt-20">
      <button type="submit" class="btn btn-success radius" id="" name="" onClick="class_save(this,'2');"><i class="icon-save"></i> 保存</button>
    </div>
  </form>
</div>
<script type="text/javascript" src="__PUBLIC__/lib/jquery.min.js"></script> 
<script type="text/javascript" src="__PUBLIC__/lib/Validform_v5.3.2.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/H-ui.js"></script> 
<script type="text/javascript" src="__PUBLIC__/js/H-ui.admin.js"></script> 
<script type="text/javascript" src="__PUBLIC__/js/H-ui.admin.doc.js"></script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?080836300300be57b7f34f4b3e97d911";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F080836300300be57b7f34f4b3e97d911' type='text/javascript'%3E%3C/script%3E"));
</script>
</body>
</html>